package com.akcome.apollo.domain;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;

/**
 * 用户账户信息
 *
 * @author wn
 * @version $v: 1.0.0, $time:2017-12-26 08:49:00 Exp $
 */
@Entity
@Table(name = "bmp_account")
public class BmpAccount implements Serializable {

    /** 主键 **/
    private Long id;

    /** 用户ID **/
    private Long userId;

    /** 账户名称 **/
    private String name;
    
    /** 付款方式[见字典PAY_MODE] **/
    private String payMode;

    /** 币种(见字典COIN_TYPE) **/
    private String coinType;

    /** 是否启用通知(见字典YES_OR_NO) **/
    private String isEnableNotice;

    /** 版本号 **/
    private Long version;
    
    /** 更新时间 **/
    private Date updateTime;

    /** 创建时间 **/
    private Date createTime;
    
    /** 备注 **/
    private String remark;


    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id", unique = true, nullable = false)
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Column(name = "user_id", length = 11)
    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    @Column(name = "name", length = 100)
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    
    @Column(name = "pay_mode", length = 10)
    public String getPayMode() {
        return payMode;
    }

    public void setPayMode(String payMode) {
        this.payMode = payMode;
    }

    @Column(name = "coin_type", length = 10)
    public String getCoinType() {
        return coinType;
    }

    public void setCoinType(String coinType) {
        this.coinType = coinType;
    }

    @Column(name = "is_enable_notice", length = 1)
    public String getIsEnableNotice() {
        return isEnableNotice;
    }

    public void setIsEnableNotice(String isEnableNotice) {
        this.isEnableNotice = isEnableNotice;
    }

    @Column(name = "version", length = 11)
    public Long getVersion() {
        return version;
    }

    public void setVersion(Long version) {
        this.version = version;
    }
    
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "update_time")
    public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "create_time")
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Column(name = "remark", length = 255)
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
    
    

}
